package com.yudean.esb.security;

import javax.jws.WebService;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * @author : DL<duanlei@gdyd.com>
 * @version : 1.0
 */
@WebService
public interface ISecurity {
    @GET
    @Path(value = "/id")
    @Produces(MediaType.TEXT_PLAIN)
    String id();

    @GET
    @Path(value = "/number")
    @Produces(MediaType.TEXT_PLAIN)
    String number();

    @GET
    @Path(value = "/verify/{id}")
    @Produces(MediaType.TEXT_PLAIN)
    String verify(@PathParam("id") String id);

    @GET
    @Path(value = "/refresh/{id}")
    @Produces(MediaType.TEXT_PLAIN)
    String refresh(@PathParam("id") String id);
}
